//
//  JWDrawables.h
//  KotH
//
//  Created by James Weatherley on 16/08/2008.
//  Copyright 2008 James Weatherley. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JWManager.h"
#import "JWEntity.h"

@class JWOpenGLView;


@interface JWManagers : NSObject {

	JWOpenGLView* view;
	NSMutableDictionary* managers;
	NSObject<JWEntity>* selectedItem;
}

@property (readwrite, assign) JWOpenGLView* view;

+(JWManagers*)sharedManager;

//-(void)addManager:(NSObject<JWManager>*)manager withName:(NSString*)name;
//-(NSObject<JWManager>*)managerWithName:(NSString*)name;

-(void)addManager:(NSObject<JWManager>*)manager;
-(NSObject<JWManager>*)managerOfClass:(Class)class_;


-(NSDictionary*)managers;
-(void)removeAllManagers;

-(NSObject<JWEntity>*)selectedItem;
-(void)clearSelectedItem;
-(JWSquare*)selectedSquare;

@end
